package cn.dylan.basic.util;

import lombok.Data;

@Data
public class JsonResult {
    private Boolean success = true;
    private String msg = "成功";
    private Object resultObj;


    public JsonResult(Boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    public JsonResult() {
    }


    public static JsonResult me(){
        return new JsonResult();
    }

    public JsonResult setMsg(String msg){
        this.success = false;
        this.msg=msg;
        return this;
    }
    public JsonResult setResultObj(Object resultObj){
        this.resultObj = resultObj;
        return this;
    }

}
